package com.example.evanproject.mapper;

import com.example.evanproject.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author hanxiaoqi
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-03-09 21:52:13
* @Entity generator.domain.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectinfo(Integer id);

    @Select("select * from user where username=#{name} and userpassword=#{pass}")
    User login(String name, String pass);


    @Select("select * from user")
    List<User> selectlist();

    Integer updatelist(Integer id, String name, String pass);



}




